/**
 * 
 */
package com.toncen.samepms.common;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 描述：属性唯一性标注
 * 
 * @author tch
 * 
 */
@Target({ ElementType.FIELD, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Unique {

	/**
	 * 属性对应的字段名
	 * 
	 * @return
	 */
	public String column() default "";
	/**
	 * TODO 属性对应的标题
	 * @author Jun 15, 2012 4:39:54 PM ZQ
	 *  @return
	 * 
	 */
	public String title();
	
	/**
	 * 
	 * TODO 拼sql时where的条件，and or
	 * @author Jun 18, 2012 10:33:09 AM ZQ
	 *  @return
	 *
	 */
	public String condition() default "AND";
	/**
	 * 
	 * TODO 复杂属性
	 * @author Jun 19, 2012 8:15:59 PM ZQ
	 *  @return
	 *
	 */
	public boolean complexField() default false;
	/**
	 * 
	 * TODO 忽略属性
	 * @author Jun 20, 2012 8:46:06 AM ZQ
	 *  @return
	 *
	 */
	public boolean ignoreField() default false;
	

}
